﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="parent.aspx.cs" Inherits="tjb.WebTest.Dialog.otest.parent" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">

    <script language="javascript">
function colorpick(obj){
   if (document.all)//IE判断
   {
      var smd= window.showModalDialog("WebForm1.aspx","","dialogWidth:225px;dialogHeight:170px;status:no;help:no;scrolling=no;scrollbars=no");
       if(smd!=null)
      obj.style.background=smd;
  return;
   }
   else
   {
    this.returnAction=function(strResult){
    if(strResult!=null)
    obj.style.background=strResult;
    }
     window.open("WebForm1.aspx","","width=225,height=170,menubar=no,toolbar=no,location=no,scrollbars=no,status=no,modal=yes");
    return;
  }
 
   }
    </script>

    <div onclick="colorpick(this)">
        asdfe
    </div>
    </form>
</body>
</html>
